<tr id='<%= "time_entry.#{entry.id}" %>' class="time-entry" style="border-bottom: 1px solid #f5f5f5;">
  <td class="activity centered"><%=h entry.activity.name %></td>
  <td class="subject"><%=h entry.project %> - [<%=raw( entry.issue ? entry.issue.status : l(:issue_not_exists))%>] <%= raw (' - ' + link_to_issue(entry.issue)) if entry.issue %></td>
  <td class="comments"><%= truncate(entry.comments, length: 150) %></td>
  <td class="issue-hours centered"><%= h entry.hours ? '%.2f' % entry.hours : '0.00' %></td>
  <td class="issue-hours centered"><%= h entry.issue ? entry.issue.estimated_hours : '0.00' %></td>
  <td class="issue-hours centered"><%= h entry.issue ? '%.2f' % entry.issue.total_spent_hours : '0.00' %></td>
  <td class="centered">
  <% if entry.editable_by?(@user) %>
      <%= link_to(image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry},
                  :title => l(:button_edit)) %>
      <%= link_to(image_tag('delete.png'), {:controller => 'spent_time', :action => 'destroy_entry', :id => entry.id, :from => @from, :to => @to}, 
                  :remote => true,
                  :data => {:confirm => l(:text_are_you_sure)}) %>
  <% end %>
  </td>
</tr>